package com.curry.cloud.rpc;

import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Component
public class FeignProviderFallback implements FeignProvider{
    @Override
    public Map getValue(Long num) {
        HashMap<Object, Object> map = new HashMap<>();
        map.put("code",400);
        map.put("message","fail in "+ num);
        return map;
    }

    @Override
    public String sleep() {
        return "TimeOut , (┬＿┬)";
    }
}
